﻿using BPM.Web.Shared.Data;

namespace BPM.Web.Shared.Extensions;

/// <summary>
/// HttpStatusCode扩展
/// </summary>
public static class HttpStatusCodeExtensions
{
    /// <summary>
    /// 获取HTTP状态码值
    /// </summary>
    /// <param name="code"></param>
    /// <returns></returns>
    public static string GetCode(this HttpStatusCode code) => ((int)code).ToString();
}
